<div class="view-header">
	<!-- 查询 -->

	<div class="search-date">
		<i class="fa fa-calendar search-date-i"></i>
		<datetimepicker class="search-date-start"
						min-view="2"
						end-date="search_params.date_end"
						ng-model="search_params.date_start"></datetimepicker>

	</div>
	<div class="search-date">
		<i class="fa fa-calendar search-date-i"></i>
		<datetimepicker class="search-date-end"
						min-view="2"
						start-date="search_params.date_start"
						ng-model="search_params.date_end"></datetimepicker>
	</div>
	<div class="view-header-left">
		<div class="view-header-item no-widen"
			 ng-click="refresh()" title="查询">
			<i class="fa fa-search"></i>
		</div>
		<div class="view-header-item color-check"  title="导出">
            <a target="_blank" href="api/member/performance/tickets_performance?start={{search_params.date_start}}&&end={{search_params.date_end}}">
            <i class="fa fa-download"></i> 导出卡券汇总表
            </a>
        </div>
	</div>


</div>
<div class="view-content reception-content view-middle" ng-show="active == 1">
    <div ag-grid="grid" class="ag-material" style="height :100%"></div>
</div>
<div class="view-content reception-content view-middle" ng-show="active == 2">
     <div ag-grid="gift_grid" class="ag-material" style="height :100%"></div>
</div>
<div class="view-footer" ng-init="active = 1">
    <li ng-click="active = 1; show_total_count()"
        ng-class="{true:'bg-004881', false:''}[active == 1]">门店积分分析表
    </li>
    <li ng-click="active = 2"
        ng-class="{true:'bg-004881', false:''}[active == 2]">礼品兑换统计表
    </li>
</div>
